from scrapy import cmdline
cmdline.execute("scrapy crawl dd -o dangdangbooks.csv".split())